package com.lovo.psc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.lovo.util.SnowIdUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘子涵
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "商品实体类", description = "商品实体类")
public class PscCommodity extends Model {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "ID")
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Integer pkId;
    @ApiModelProperty(value = "供应商编号")
    @TableField("fk_commodityMumber")
    private Integer fkCommoditymumber;
    @ApiModelProperty(value = "商品编号")
    private String number =String.valueOf(SnowIdUtils.uniqueLong()).substring(9);;
    @ApiModelProperty(value = "商品名称")
    @TableField("NAME")
    private String name;
    @ApiModelProperty(value = "商品规格")
    private String size;
    @ApiModelProperty(value = "商品类型")
    private String state;
    @ApiModelProperty(value = "商品数量")
    private Integer eum;
}